.TH std::experimental::simd_mask::size 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::experimental::simd_mask::size \- std::experimental::simd_mask::size

.SH Synopsis
   static constexpr size_t size() noexcept;  (parallelism TS v2)

   Returns the width (the number of values) of simd_mask<T, Abi>.

.SH Example

   The actual output depends on target and compiler flags.


// Run this code

 #include <experimental/simd>
 #include <iostream>
 namespace stdx = std::experimental;

 int main()
 {
     stdx::native_simd_mask<int> a { true };
     std::cout << a.size() << '\\n';
     std::cout << popcount(a) << '\\n';
 }

.SH Possible output:

 16
 16

.SH See also

   simd_size                obtains the number of elements of a given element type and
   (parallelism TS v2)      ABI tag
                            \fI(class template)\fP
   size                     returns the width / number of elements
   \fB[static]\fP (parallelism TS \fI\fI(public static member\fP function of\fP
   v2)                      std::experimental::simd<T,Abi>)
